<script type="text/javascript">
    $(function () {
        $('html > .loading').remove();
        let $body = $('body');

        $body.fadeIn(1000);
        $body.tooltip({
            selector: '[data-toggle=tooltip]'
        });

        if (window.Yeskn.messageCount || window.Yeskn.noticeCount) {
            $('.nav-bell-dot').addClass('push-notifications-count');
        } else {
            $('.nav-bell-dot').removeClass('push-notifications-count');
        }

        if (window.Yeskn.lastChatId*1 !== '{{ app.request.cookies.get('_last_chat_id') }}'*1) {
            $('.nav-chat-dot').addClass('push-notifications-count');
        } else {
            $('.nav-chat-dot').removeClass('push-notifications-count');
        }

        {% if options().girl_enable %}
            window.YesknPlugins.get('landLord');
        {% endif %}
    });
</script>
